package com.hwd.easyexcel.pojo.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 黄伟东/Victor
 * @date 2022/3/14 11:38
 * @Description DTO 中的属性要对应excel中的列名
 * DTO：data transfer object 数据传输对象
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ExcelStudentDTO {

    @ExcelProperty("姓名")
    private String name;

    @ExcelProperty("生日")
    private Date birthday;

    @ExcelProperty("薪资")
    private Double salary;
}
